package com.utils.common;

public enum ResponseEnum {
    INNER_ERROR(500, "内部错误"),
    LOGIN_SUCCESS(200, "登录成功"),
    LOGIN_FAILED(3000, "登录失败，账号或密码错误"),
    ACCOUNT_NOT_FOUND(2002, "账号不存在，请先注册"),
    ACCOUT_NOT_LOGIN(50008, "账号未登录"),
    GET_SUCCESS(200, "数据获取成功"),
    ADD_SUCCESS(200, "添加成功"),
    DELETE_SUCCESS(200, "删除成功"),
    DELETE_ERROR(500, "删除失败"),
    UPDATE_SUCCESS(200, "修改成功"),
    UPDATE_ERROR(500, "修改失败"),
    UPLOAD_SUCCESS(200, "上传成功"),
    ;
    Integer code;		//响应码
    String message;		//响应信息

    ResponseEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
